#ifndef REPEATWID_H
#define REPEATWID_H

#include <QGraphicsPixmapItem>
#include <QApplication>
#include <qdebug.h>
#include <QPixmap>

class repeatWid : public QObject, public QGraphicsPixmapItem
{
    Q_OBJECT
public:
    repeatWid(QString onIcon, QString offIcon, bool repeatIsActivated = false);

private:
    QPixmap * onPix;
    QPixmap * offPix;
    void mousePressEvent(QGraphicsSceneMouseEvent * event);

signals:
    void repeatToggled();

public slots:
    void updateStatus(bool status);
};

#endif // REPEATWID_H
